#!/usr/bin/env python
# -*- coding: UTF-8 -*-

'''
This file contains all possible error messages in
all modules.
You can call them like this : Errors.restrings[xx]
Where xx is the error number
'''

retstrings = {0: 'Everything is OK',
              1: 'Error while archiving directories',
              70: 'Invalid target filename',
              80: 'Target file already exists, skipping backup',
              90: 'is not a directory',
              99: 'Unable to read the directories list'}

def Err(errCode):
    '''
    Return a tuple wich contains
    '''
    return(errCode, retstrings[errCode])
